From cad2d56ce254504278aa8b2b7b36ac98a928a1b8 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 9 Nov 2004 15:35:27 +0000 Subject: [PATCH] Show the grip_window if necessary. 2004-11-09 Matthias Clasen * gtk/gtkstatusbar.c (gtk_statusbar_set_has_resize_grip): Show the grip_window if necessary. --- ChangeLog | 5 ++++- ChangeLog.pre-2-10 | 5 ++++- ChangeLog.pre-2-6 | 5 ++++- ChangeLog.pre-2-8 | 5 ++++- gtk/gtkstatusbar.c | 5 ++++- 5 files changed, 20 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 05552b823b..3a0b4e2c2e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,11 @@ 2004-11-09 Matthias Clasen + * gtk/gtkstatusbar.c (gtk_statusbar_set_has_resize_grip): + Show the grip_window if necessary. + * gtk/gtkstyle.c (gtk_default_draw_resize_grip): Only clear the triangle below the grip to the background, - not the full area. + not the full area. * gtk/gtklabel.c (draw_insertion_cursor, gtk_label_expose): Clip when drawing the cursor. This prevents bits of a diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 05552b823b..3a0b4e2c2e 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,8 +1,11 @@ 2004-11-09 Matthias Clasen + * gtk/gtkstatusbar.c (gtk_statusbar_set_has_resize_grip): + Show the grip_window if necessary. + * gtk/gtkstyle.c (gtk_default_draw_resize_grip): Only clear the triangle below the grip to the background, - not the full area. + not the full area. * gtk/gtklabel.c (draw_insertion_cursor, gtk_label_expose): Clip when drawing the cursor. This prevents bits of a diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 05552b823b..3a0b4e2c2e 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,8 +1,11 @@ 2004-11-09 Matthias Clasen + * gtk/gtkstatusbar.c (gtk_statusbar_set_has_resize_grip): + Show the grip_window if necessary. + * gtk/gtkstyle.c (gtk_default_draw_resize_grip): Only clear the triangle below the grip to the background, - not the full area. + not the full area. * gtk/gtklabel.c (draw_insertion_cursor, gtk_label_expose): Clip when drawing the cursor. This prevents bits of a diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 05552b823b..3a0b4e2c2e 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,8 +1,11 @@ 2004-11-09 Matthias Clasen + * gtk/gtkstatusbar.c (gtk_statusbar_set_has_resize_grip): + Show the grip_window if necessary. + * gtk/gtkstyle.c (gtk_default_draw_resize_grip): Only clear the triangle below the grip to the background, - not the full area. + not the full area. * gtk/gtklabel.c (draw_insertion_cursor, gtk_label_expose): Clip when drawing the cursor. This prevents bits of a diff --git a/gtk/gtkstatusbar.c b/gtk/gtkstatusbar.c index e14ccfeb53..c7cb374a8a 100644 --- a/gtk/gtkstatusbar.c +++ b/gtk/gtkstatusbar.c @@ -416,7 +416,10 @@ gtk_statusbar_set_has_resize_grip (GtkStatusbar *statusbar, if (GTK_WIDGET_REALIZED (statusbar)) { if (statusbar->has_resize_grip && statusbar->grip_window == NULL) - gtk_statusbar_create_window (statusbar); + { + gtk_statusbar_create_window (statusbar); + gdk_window_show (statusbar->grip_window); + } else if (!statusbar->has_resize_grip && statusbar->grip_window != NULL) gtk_statusbar_destroy_window (statusbar); } -- 2.30.2